$(function () {
    initLayerDate("#beginUseTime",true);
    initLayerDate("#endUseTime",true);
    queryAjaxCouponCode(1);
    $('body').on('click','#submitCouponCode',function () {
        queryAjaxCouponCode(1);
    });
});

function queryAjaxCouponCode(pageNo) {
    var params = $("#search-form").serializeJSON();
    params = JSON.stringify(params);
    var obj = {
        url: baseloaction + '/admin/IntegralCardVoucher/virtual/getPageIntegralCardVoucher',//请求URL
        contextId: 'couponCode-list-context',//响应内容页面设置内容ID
        params: params,//请求参数
        pageNo: pageNo,//页码
        pageCall: queryAjaxCouponCode, //分页回调加载数据(点击上下页时调用,该方法也在加载页面完成时调用)
        selectAllId: 'select-all-user', //全选框ID
        callback: function () {//数据加载完成回调

        }
    };
    ajaxGetListData(obj);
}